package com.woniuxy.lrz.carlproject.controller.form.formgoods;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

@Data
@ApiModel("新增/修改商品属性，接收前端参数")
public class GoodsPropertyAddOrUpdateForm {


    @ApiModelProperty("属性ID")
    private Integer propertyId;

    @ApiModelProperty("属性名")
    @NotBlank(message = "属性名不能为空")
    private String propertyName;

    @ApiModelProperty("关联分类id")
    @NotNull(message = "商品分类Id不能为空")
    private Integer goodCategoryId;
}
